home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group95c.txt
/
000109_icon-group-sender _Mon Dec 4 17:01:09 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1996-01-03
|
1KB
Received: by cheltenham.cs.arizona.edu; Mon, 4 Dec 1995 13:15:34 MST
To: icon-group@cs.arizona.edu
Date: 4 Dec 1995 17:01:09 GMT
From: John Lindsay <lindsay-j@rmc.ca>
Message-Id: <49v9gl$ksu@cs6.rmc.ca>
Organization: Royal Military College
Sender: icon-group-request@cs.arizona.edu
Subject: Generators and/vs. coroutines ?
Errors-To: icon-group-errors@cs.arizona.edu
Generators are extremely useful and neat where they are needed (even a
sine qua non in some cases), maddening to understand for the first
time, and totally infuriating to even think of implementing in a
'normal' C, FORTRAN, Pascal .... call-stack environment where full
tasking and multithreading and exception-handling may be involved.
Hence I pose the following:
Is an Icon generator anything more or less than a coroutine which can
be instantiated by an explicit call with value arguments, and can
'return' a function value across the coroutine boundary ?
--
All the best !
John H. Lindsay, Phone: (613) 541-6000 - 1 - 6419
Department of Mathematics and Computer Science,
Royal Military College of Canada, Internet: Lindsay_J@RMC.CA
Kingston, Ontario, Canada, K7K 5L0. Fax: (613) 542-8129